import React from 'react';
import { RouteObject } from "react-router-dom";
import Login from '../view/login'
import Layout from '../layout/index'
import User from '../view/user'
import Category from '../view/category'
import Bill from '../view/bill'
let routes: RouteObject[] = [
    {
        path: "/login",
        element: <Login />
    },
    {
        path: "/",
        element: <Layout />,
        children: [
            {
                index: true,
                path: "/user",
                element: <User />
            },
            {
                path: "/category",
                element: <Category />
            },
            {
                path: "/bill",
                element: <Bill />
            }
        ]
    }
];
export default routes